package com.example.smartgreenhouse.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("threshold_settings")
public class ThresholdSettings {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String type; // soil_moisture/air_temperature/air_humidity/light_intensity
    /*
    •	soil_moisture（土壤湿度）
    •	air_temperature（空气温度）
    •	air-humidity（空气湿度）
    •	light_intensity（光照强度）
    */
    private int minValue;
    private int maxValue;
    private LocalDateTime createTime = LocalDateTime.now();
    private LocalDateTime updateTime = LocalDateTime.now();
}